<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html 	xmlns="http://www.w3.org/1999/xhtml"  
    	xmlns:h="http://java.sun.com/jsf/html"  
    	xmlns:f="http://java.sun.com/jsf/core"  
    	xmlns:p="http://primefaces.org/ui"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
      	xmlns:a4j="http://richfaces.org/a4j">  
  
<h:head><p:panel id="titlePanel" header="Pagina Pacchetti"></p:panel></h:head>  
      
<h:body> 
	<h:form>
	<p:toolbar>  
    <p:toolbarGroup align="left">  
        <p:button type="button" value="Home" outcome="home.xhtml" />  
 		<p:button type="button" value="Ricerca un'istanza" outcome="ricercaIstanza.xhtml"/>    
        <p:menuButton value="Login">  
        	<p:menuitem value="Login amministratore" outcome="amministratore/paginaPersonaleAmministratore.xhtml"/>
        	<p:menuitem value="Login impiegato" outcome="impiegato/paginaPersonaleImpiegato.xhtml" />  
        	<p:menuitem value="Login cliente" outcome="cliente/paginaPersonaleCliente.xhtml"/>  
    	</p:menuButton> 
    </p:toolbarGroup>  
    </p:toolbar>	
	</h:form>
	
	<p:carousel id="basicCarousel" value="#{pacchettoBean.listaPacchetti}" var="pacchettoDTO">  
	    <f:facet name="header">  
	            Pacchetti 
	    </f:facet>  
	    <h:panelGrid columns="1" style="width:100%" cellpadding="5">    
	        <h:outputText value="Nome: #{pacchettoDTO.nome}" /> 	         
	        <h:outputText value="Destinazione: #{pacchettoDTO.destinazione}" />	  
	        <h:outputText value="Data di partenza: #{pacchettoDTO.dataPartenza}"/>	
	        <h:outputText value="Data di ritorno: #{pacchettoDTO.dataArrivo}"/>	  
	        <h:outputText value="Hotel: #{pacchettoDTO.hotel}"/>	    
	        <h:outputText value="Prezzo: #{pacchettoDTO.prezzo}" />         
	    </h:panelGrid>   
	</p:carousel>  
</h:body>  
</html>  